package com.itheima.tlias08_14.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SelectEmp {
    private int id; // ID
    private String username; // 用户名
    private String password; // 密码
    private String name; // 姓名
    private int gender = 1 ; // 性别, 说明: 1 男, 2 女
    private Integer job; // 职位, 说明: 1 班主任,2 讲师, 3 学工主管, 4 教研主管, 5 咨询师
    private int salary; // 薪资
    private String image; // 头像
    @JsonFormat(pattern = "yyyy年MM月dd")
    private LocalDate entryDate; // 入职时间
    private Integer deptId; // 部门ID
    private String deptName;
    @JsonFormat(pattern = "yyyy年MM月dd HH-mm-ss")
    private LocalDateTime createTime; // 创建时间
    @JsonFormat(pattern = "yyyy年MM月dd HH-mm-ss")
    private LocalDateTime updateTime; // 修改时间

}
